package com.yunxin.core.domain.model.weight;
import io.swagger.v3.oas.annotations.media.Schema;
import jakarta.validation.constraints.Max;
import jakarta.validation.constraints.Min;
import jakarta.validation.constraints.NotEmpty;
import lombok.Data;

import java.util.Date;

@Data
public class SysUserWeightDto {

    /**
     *
     */
    private Integer id;

    /**
     * 权重名称
     */
    @Schema(description = "权重名称")
    @NotEmpty(message ="权重名称不能为空")
    private String weightName;

    /**
     * 权重 1-100
     */
    @Schema(description = "权重 0-100")
    @Min(value = 0,message = "权重最小值不能小于0")
    @Max(value = 100,message = "权重最大值不能大于100")
    private Integer weightNum;

    /**
     * 商户id
     */
    @Schema(hidden = true)
    private Long merchantId;

    /**
     * 状态 1.开启 2.禁用
     */
    @Schema(hidden = true)
    private Integer status;

    /**
     * 创建人
     */
    @Schema(hidden = true)
    private String creator;

    /**
     * 修改人
     */
    @Schema(hidden = true)
    private String editor;

    /**
     * 删除状态 1.正常 2.删除
     */
    @Schema(hidden = true)
    private Integer isDel;

    /**
     * 创建时间
     */
    @Schema(hidden = true)
    private Date createTime;

    /**
     * 修改时间
     */
    @Schema(hidden = true)
    private Date updateTime;
}
